package Fail3_17;

import java.io.File;
import java.io.IOException;

/**
 * 创建删除文件
 */
public class FileDemo2 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file=new File("./hello.txt");
        //创建文件
        file.createNewFile();
        Thread.sleep(3000);
        System.out.println(file.getCanonicalPath());
        System.out.println(file.isFile());
        System.out.println(file.delete());
    }
}
